<template>
    <div>
        <div class="title">周末去哪儿</div>
        <ul>
            <li class="item border-bottom" v-for='item of list' :key='item.id'>
                <img class="item-img" :src="item.imgUrl">
                <div class="item-info">
                    <p>{{item.title}}</p>
                    <p>{{item.desc}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
    name: 'HomeWeekend',
    props:{
        list:Array
    }
    
}
</script>


<style lang="stylus"  scoped>
.title
    line-height:.8rem
    text-indent:.2rem
    background:#eee
.item
    padding:.2rem
    .item-img
        width:100%
        height:2.14rem	
    .item-info
        p:nth-child(1)
            padding:.3rem 0
            font-size:.36rem
        p:nth-child(2)
            color:#555
</style>